/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package carreras.negocio;

import java.sql.SQLException;

/**
 *
 * @author fanky10
 */
public class Configuracion {
    private carreras.datos.Configuracion dConfig;
    public Configuracion(){
        dConfig = new carreras.datos.Configuracion();
    }
    public String getValue(String key, String default_value){
        try{
            dConfig.openConn();
            return dConfig.getValue(key, default_value);
        }catch(SQLException ex){
            //ignored
        }finally{
            try{
                dConfig.closeConn();
            }catch(SQLException ex){
                //ignored
            }
        }
        return default_value;
    }
}
